package com.realtime;

public class RemoveUnwantedfromString {
	
	  public static void main(String[] args)
	  {
	    String s = "(123)-456-7891";
	    s = s.replaceAll("[^a-zA-Z0-9]", "");
	    //this[^a-zA-Z0-9) means Except this remove any from the specified String and replace with second parameter inside of  double quotes "".
	    System.out.println(s);
	  }
	 
}

